<?php

namespace App\Http\Resources\funds;

use Illuminate\Http\Resources\Json\Resource;

class RechargeResource extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return  parent::toArray($request);

        return [
            'price'         => $this->resource->price,
            'money'         => $this->resource->money,
            'give_explain'  => $this->resource->give_explain??'',
            'remark'        => $this->resource->remark??'',
        ];
    }
}
